package cn.bgs.vo;

import cn.bgs.utils.PageRequest;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class MonthVo {

    @ApiModelProperty(value = "月卡自增id")
    private Integer vehicleMonthcarId;

    @ApiModelProperty(value = "月卡编号")
    private String serialNumber;

    @ApiModelProperty(value = "车辆id")
    private Integer vehicleCarId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "月卡生效时间")
    private LocalDateTime effectTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "月卡到期时间")
    private LocalDateTime dueTime;

    @ApiModelProperty(value = "月卡状态")
    private String state;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "车牌号")
    private String vehicleNumber;

    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "身份（业主、管理员） ")
    private String identity;



    private PageRequest pageRequest;
}
